<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
    </head>

    <body>

        <div class="prod_box_big" style="text-align: center;">
            <div class="center_prod_box_big">
                <div class="contact_form">
                    <?php
                    if(isset ($_POST['username'])){
                        echo $eror;
                    }
                    if (!$this->session->userdata('id')) {
                        
                        
                        echo '<span style="color:red;">' . validation_errors() . '</span>';
                        ?>
                        <?php
                        echo form_open('pages/login');
                        $username = array(
                            'name' => 'username',
                            'value' => '',
                            'id' => 'name',
                            'placeholder' => 'Your username',
                            'required' => '',
                            'tabindex' => '1'
                        );
                        $password = array(
                            'name' => 'pass',
                            'value' => '',
                            'id' => 'password',
                            'placeholder' => 'Your password',
                            'required' => '',
                            'type' => 'password'
                        );
                        ?>
                        <div class="form_row">
                            <label class="contact"><strong>Username:</strong></label>
                            <?php echo form_input($username); ?>
                        </div>
                        <div class="form_row">
                            <label class="contact"><strong>Password:</strong></label>
                            <?php echo form_password($password); ?>
                        </div>

                        <div class="form_row">
                            <?php
                            echo form_submit('submit', 'Login Now');
                            echo form_close();
                        }
                        ?>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>